package no.adhocit.timex.service;

import java.util.List;

import javax.jws.WebService;

import no.adhocit.timex.domain.Person;
import no.adhocit.timex.domain.Prosjekt;

import org.hibernate.Query;
import org.hibernate.Session;

//@WebService
public interface MainService {
	
	/**
	 * Retrieves all persons
	 * 
	 * @return a list of persons
	 */
	public List<Person> getAllPerson();
	
	/**
	 * Retrieves a single person
	 */
	public Person getPerson( Integer id );
	
	
	/**
	 * Adds a new person
	 */
	public void addPerson(Person person);
	
	/**
	 * Deletes an existing person
	 * @param id the id of the existing person
	 */
	public void deletePerson(Integer id);
	
	
	/**
	 * Edits an existing person
	 */
	public void editPerson(Person person);
	
	
	
	/**
	 * Retrieves all prosjekter
	 * 
	 * @return a list of prosjekter
	 */
	public List<Prosjekt> getAllProsjekt();
	
	/**
	 * Retrieves a single prosjekt
	 */
	public Prosjekt getProsjekt( Integer id );
	
	
	/**
	 * Adds a new prosjekt
	 */
	public void addProsjekt(Prosjekt prosjekt);
	
	/**
	 * Deletes an existing prosjekt
	 * @param id the id of the existing prosjekt
	 */
	public void deleteProsjekt(Integer id);
	
	
	/**
	 * Edits an existing prosjekt
	 */
	public void editProsjekt(Prosjekt prosjekt);
	
	

}
